﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using Ordinaire.Security;
using Ordinaire.Security.Model;

namespace Ordinaire.Pos.Win.Pages
{
    /// <summary>
    /// Interaction logic for Login.xaml
    /// </summary>
    public partial class Login : Page
    {
        public Login()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            User admin = UserManager.Instance.Authenticate("admin", "admin");
            if (admin == null)
            {
                string message = "User provided is incorrect";
                string caption = "Error";
                MessageBox.Show(message, caption, MessageBoxButton.OKCancel, MessageBoxImage.Warning);
            }
        }
    }
}
